Repository navigation
feat(window): edit creators row by row and close the last list re-reads (0.9.0) - #8
Merged
Merged
Conversation
A blank or white-space title is refused with the normal 422 line on interactive create and on update that would blank a held title. Import paths keep their old behaviour.
The position route takes include_trashed so it can answer where a just-trashed item sat in the current sort and filter, with the same ordering as the rows route.
A position answer asked with include_trashed carries include_trashed true, so a window can tell an older engine that ignored the flag.
fetchPosition answers unknown for a 404 that carries the engine detail, and null only for a 405, a bare Not Found or a trashed ask the engine did not honour.
Never-loaded removes ask the position route with include_trashed and adds ask for all positions at once, then the cache shifts in one pass and only the holes are read.
The detail client can send a whole fields object in one PATCH, so every creator role goes in one request.
The detail model reads creators from every CSL name role into keyed rows, keeps keys across reloads, and saves the whole ordered list in one PATCH.
The one-line creators field is replaced by a fixed-height scrolling box with a row per creator, role select, institution toggle, reorder and a confirmed remove.
Leaving a creator row from the role select now saves the row, and reordering swaps the two rows' contents in place so no row node moves.
WINDOW.md now says when the list still re-reads after a remove or add.
Both logs record the include_trashed ranking, the unknown id rule and the checked numbers.
…list patches Tag and collection rows write data and aria-current only when the value changes, a tag rename moves the row to its sorted place at once, and focus is restored when a list patch or rename moves the focused row.
Log the side pane tag measurement and the title-required rule.
Names take the first line and role with the row controls the second, so family and given names stay readable in the narrow pane; the box is a fixed 144 px.
Records how creators map to CSL name roles, what the PATCH carries, and what was measured in a private built copy.
Moves every version site to 0.9.0 and adds the changelog section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(window): edit creators row by row and close the last list re-reads (0.9.0)
Summary
Commits
16 commits, release commit last. No hashes, since they change when signed. By area: item pane and creators 5 · item list and the position route 5 · side pane 1 · title rule 1 · docs and logs 3 · release 1.
Version
v0.9.0 (release commit is last). Moved:
frontend/package.json, both fields infrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.py,src-tauri/Cargo.tomland its entry insrc-tauri/Cargo.lock,src-tauri/tauri.conf.json, the three files ofnative/formcite-style, the "Current build version" line in four logs, and a new section inCHANGELOG.md.Checks
Run by the orchestrator at the head: the engine and command line import; the style regression set, twelve PASS; the window type check. Each of the 15 commits before the release commit was checked out in a copy and imported: 15 of 15. Scans over the new commits: one author and committer, offset -0500, no attribution words, no merge commit, no test file, no em dash or emoji in changed markdown, no raw z-index.
Run by the orchestrator once on the new head, in a private built copy served by the engine, 2,000 imported items, processor slowed 4x, 400 ms latency at about 400 kbit/s, cache off, cold load: five sorts and one reversed, filter to 458 and clear, select, six arrow keys, a title edit (its row updated), scroll. Layout-shift entries: 0 without input, 0 with input. Row pool 55. No page error, no failed request.
Run by agents only, in private built copies under the same throttling: creators add, reorder, role change, institution name, a refused save and remove, with the saved lists read back (0 without input; 0.00085 with input when a row is removed); never-loaded remove, three removed and three added at once in the whole library, a collection, a tag and a filter, with request traces; the tag list with 31 real tags (first fill, scope pick, rename, delete, add); an empty title refused on the command line; a title-less BibTeX, RIS and CSL JSON entry each still importing.
Not run: the desktop shell (it has never been compiled); the CI workflow for these commits; an empty title through the HTTP route (it shares the store function). Known and not fixed: keyboard focus is sometimes lost about a second after a tag rename under throttling; a brand-new tag row shifts the rows under it by 0.0013; 0.0002 on one collection-scope remove.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.